module PokerSubject
  def initialize
    @observers=[]
  end

  def add_observer(&observer)
    @observers << observer
  end

  def delete_observer(observer)
    @observers.delete(observer)
  end

  def notify_observers ref
    @observers.each do |observer|
      observer.call  ref
    end
  end

end